package com.ayf.payment.game.api.mapper.platform;

import com.ayf.payment.game.api.dto.criteria.OrderInfoCriteria;
import com.ayf.payment.game.api.entity.platform.MerchantSettle;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.math.BigDecimal;
import java.util.Map;

public interface MerchantSettleMapper extends Mapper<MerchantSettle> {
    /**
     * 查询商户结算汇总信息
     *
     * @param cri
     * @return
     */
    @MapKey("merchant_id")
    Map<Integer, Map<String, Object>> selectSumSettle(@Param("cri") OrderInfoCriteria cri);

    int updateSettleAmtAndSettleStatusBySettleOrderNo(@Param("settleOrderNo")String settleOrderNo,@Param("settleAmt")BigDecimal settleAmt,@Param("settleStatus")Integer settleStatus);
}